package com.youlai.boot.system.service;

import com.youlai.boot.system.model.entity.ProcessRecord;
import com.youlai.boot.system.model.form.ProcessRecordForm;
import com.youlai.boot.system.model.query.ProcessRecordQuery;
import com.youlai.boot.system.model.vo.ProcessRecordVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.boot.system.model.vo.RecordItem;
import jakarta.validation.Valid;

import java.util.List;

/**
 * 处理记录服务类
 *
 * @author youlaitech
 * @since 2025-02-28 16:53
 */
public interface ProcessRecordService extends IService<ProcessRecord> {

    /**
     *处理记录分页列表
     *
     * @return
     */
    IPage<ProcessRecordVO> getProcessRecordPage(ProcessRecordQuery queryParams);


    ProcessRecordVO getFormById(Long id);

    List<RecordItem> getHistoryRecord(Long requestId);

    Boolean addRecord(@Valid ProcessRecordForm processRecordForm);

    Boolean updateRecord(@Valid ProcessRecordForm processRecordForm);

    Boolean removeRecords(String ids);
}
